//配置数据的结构
const { Schema, model } = require('mongoose');
const joinPackSchema = new Schema({
    joinPackName: String,
    joinPackId: String,
    joinPackTime: String,
    joinPackMaterial: String,
    joinPackNote: String,
    //关联物料清单ID
    thingListId: [{
        type: Schema.Types.ObjectId,
        ref: 'thingListsModel'
      }],
}, { versionKey: false });
//配置数据模型
const joinPackModule = model('joinPackModule', joinPackSchema, 'joinPacks');

//把配置的数据模型暴露出去
module.exports = {
    joinPackModule
}